/*
 * ex3.8_typesize.c
 *
 *  Created on: 2018年11月15日
 *      Author: discotek
 */

#include <stdio.h>
#include "../header/ex3.8_typesizes.h"
#include "../header/util.h"

void ex3_8_typesizes() {
	print_sep((char *) "example 3.8 type sizes");

	printf("Type int has a size of %zd bytes.\n", sizeof(int));
	printf("Type char has a size of %zd bytes.\n", sizeof(char));
	printf("Type long has a size of %zd bytes.\n", sizeof(long));
	printf("Type long long has a size of %zd bytes.\n", sizeof(long long));
	printf("Type double has a size of %zd bytes.\n", sizeof(double));
	printf("Type long double has a size of %zd bytes.\n", sizeof(long double));
}
